<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>选课结果</title>
</head>
<body>
<div>
    <div th:text="'欢迎，'+${user.name}"></div>
    <form th:action="@{/logout}" method="post">
        <input type="submit" value="登出"/>
    </form>
</div>
<div th:object="${user}">
    <b>个人信息：</b><br/>
    <div th:text="'姓名：'+*{name}"></div>
    <div th:text="'学号：'+*{stuId}"></div>
    <div th:text="'年级：'+*{grade}"></div>
    <div th:text="'专业：'+*{major}"></div>
    <div th:text="'学院：'+*{academy}"></div>
</div>
<span>
    <b>已选课程：</b>
</span>
<div th:each="ind : ${course}">
    <span th:text="${ind.name}"></span>
</div>
</body>
</html>
